<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="js/jquery-3.0.0.min.js"></script>
<script type="text/javascript" src="js/ocr.js"></script>
<link rel="stylesheet" type="text/css" href="css/ocr.css">
<title>102聊天室-mybaties</title>
</head>
<body onload="setInterval(receive,300),setInterval(online,300),autoSetHeight()">
<%
	Object logged=session.getAttribute("logged");
	if(logged==null||(Integer)logged!=1){
		out.println("<script>alert('请先登录！');window.location='login.html';</script>");
	}
	Object nickObj=session.getAttribute("nick");
	String nick=null;
	if(nickObj!=null){
		nick=nickObj.toString();
	}

%>
<div class="char_room">
<div class="online_list">
<div id="nick" class="nick"><%=nick %></div>
<div id="nick_list" class="nick_list">
<button class="quit" name="quit" id="quit" onclick="quit()">退出</button>

<ul id="nick_list_in" class="nick_list_in">

</ul>
</div>
</div>

<div class="char_body">
<div class="char">
<br>
<div id="char_content" class="char_content">

</div>
</div>
<div class="char_input">
<textarea class="input" rows="" cols="" name="input" id="input"  onkeydown="keyCtrlAndOrEnter()"></textarea>
<br>
<button class="send" name="send" id="send" onclick="send()">发送</button>
</div>
</div>
</div>
</body>
</html>